def text_to_binary(text):
    """Convert text to binary (8 bits per character)."""

    binary_code = []
    for char in text:
        ascii_value = ord(char)
        binary_value = format(ascii_value, '08b')
        binary_code.append(binary_value)

    return " ".join(binary_code)


text = input("Enter text to convert to binary: ")
binary_output = text_to_binary(text)

print("\nBinary Code:")
print(binary_output)